
/*
 * Copyright (C) 2008-2009 Archie L. Cobbs. All rights reserved.
 *
 * $Id: Closeable.java 377 2010-03-11 20:50:18Z archie.cobbs $
 */

package org.dellroad.sidekar.util;

/**
 * Interface implemented by database objects that need to be closed when they are no longer in use.
 */
public interface Closeable /* extends AutoCloseable */ {

    /**
     * Close this instance.
     *
     * <p>
     * After closing, this instance is no longer usable. This method should be thread-safe
     * and idempotent (i.e., safe to invoke more than once).
     */
    void close();
}

